package com.sixth.docker.service.impl;

import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.A;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sixth.core.entity.Dept;
import com.sixth.core.vo.R;
import com.sixth.docker.mapper.DeptMapper;
import com.sixth.docker.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 赵庆龙
 * @create: 2024-08-21 10:24
 **/
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    private DeptMapper deptMapper;

    @Override
    public R<Dept> selectById(Long deptId) {
        QueryWrapper<Dept> wrapper = new QueryWrapper<>();
        wrapper.eq("dept_id",deptId);
        Dept dept = deptMapper.selectOne(wrapper);
        return R.ok(dept);
    }
}
